
import hardware.PumpHardware;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Erik Alexander
 */
public class Simulator {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws InterruptedException {
        // Create TestingExtensionUI.
        //

        // Create PumpHardware.
        System.out.println("Calling PumpHardware constructor...");
        PumpHardware pump = new PumpHardware();

        // Insert battery to power hardware.
        System.out.println("Inserting battery in pump...");
        pump.toggleBattery();

        // Let pump run for 5 sec.
        System.out.println("Let pump run for 5 seconds:");
        Thread.currentThread().sleep(5000);

        // Remove battery; hardware should die.
        System.out.println("Removing battery from pump; hardware should die.");
        pump.toggleBattery();
        pump.shutdown();
    }
}
